# -*- coding: utf-8 -*-
import scrapy


class JobboleSpider(scrapy.Spider):
    name = 'jobbole'
    allowed_domains = ['blog.jobbole.com']
    start_urls = ['http://blog.jobbole.com/114690/']

    def parse(self, response):
        # re_selector = response.xpath("/html/body/div[1]/div[3]/div[1]/div[1]/h1")
        re_selector = response.xpath("//div[@class='entry-header']/h1/text()")
        create_time=response.xpath("//p[@class='entry-meta-hide-on-mobile']/text()").extract()[0].strip().replace("·","")
        print(re_selector)
    pass
